package com.itheima.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.itheima.entity.OrderDetail;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
/**
 * @Author: zhuan
 * @Desc: 订单模块-视图对象
 * @Date: 2022-05-25 15:05:33
 */
@Data
public class OrderVO implements Serializable {

		private List<OrderDetail> orderDetails =new ArrayList();

		private Long id;
		//订单号
		private String number;
		//订单状态 1待付款，2待派送，3已派送，4已完成，5已取消
		private Integer status;

		//下单用户id
		private Long userId;

		//地址id
		private Long addressBookId;

		//下单时间
		@JSONField(format = "yyyy-MM-dd HH:mm:ss")
		private LocalDateTime orderTime;

		//结账时间
		@JSONField(format = "yyyy-MM-dd HH:mm:ss")
		private LocalDateTime checkoutTime;

		//支付方式 1微信，2支付宝
		private Integer payMethod;

		//实收金额
		private BigDecimal amount;

		//备注
		private String remark;

		//用户名
		private String userName;

		//手机号
		private String phone;

		//地址
		private String address;

		//收货人
		private String consignee;
}
